(navigation image)
Home American Libraries | Canadian Libraries | Universal Library | Community Texts | Project Gutenberg | Children's Library | Biodiversity Heritage Library | Additional Collections
Search: Advanced Search
Anonymous User (login or join us)
Upload
See other formats

Full text of "Programming"

Audio-Enhanced Touch Sensors to Help the Visually Impaired 



i 



Make Projects 



build, hack, tweak, share, discover, J 



Audio-Enhanced Touch Sensors 



to Help the Visually Impaired 



Written By: Matt 



f TOOLS: 

• Phillips 2 Screwdriver (1) 

• Soldering Iron and rosin core solder. (1) 

• Wire cutter/stripper (1) 



PARTS: 



32 awg copper laminated wire (1) 

Arduino Uno (1) 

USB shield for ArduinoM) 

XKitz touch sensor boards (1) 

Blue-tack (1) 

Android phone (1) 

Must run Android v2.3.4 or higher 

Stackable header pins (1) 

Micro USB Cabled) 

Resistors. 1k (1) 

0.1" header pins (strip of 8 for each 
XKitz board) (1) 

0.1" sockets (strip of 8 for each XKitz 
board) (1) 



© Make Projects 



www.makeprojects.com 



Page 1 of 10 



Audio-Enhanced Touch Sensors to Help the Visually Impaired 
SUMMARY 

Add touch sensors which trigger audio tags. This helps visually impaired people find their 
way around a new device. Or you could make an educational toy to help Junior learn what 
things are called. Or you could add a warning to 'keep off your stuff! Or.... 

Please note: I copied and modified the Android code from one of the examples in Simon 
Monk's book "Arduino + Android for the Evil Genius" to get this all going. 



© Make Projects www.makeprojects.com Page 2 of 1 



Audio-Enhanced Touch Sensors to Help the Visually Impaired 





• Solder up your Xkitz touch sensor 
board(s), following the instructions 
that come with them. Blue-tack is a 
great help for keeping components 
in place while you turn the board 
over to solder them. Each board 
can handle 8 channels. Set a 
unique address for each board by 
using a jumper on the header pins 
P1 to P4. For this project I used 
two boards to give a total of 1 6 
touch sensors. I left one board with 
no jumper and placed a jumper 
across P2 on the other. 

• A jumper needs to be soldered 
across one of the communication 
ports to allow the Arduino to 
communicate with the boards. Use 
the same port for all of the boards. 
This is detailed in the Xkitz 
instructions. I use channel 2. 

• We will make the header pin 
attachment, with the yellow wires, 
in the next step. This will be used 
to attach the wires that connect 
with the controls that you are 
enhancing with touch sensors. 



© Make Projects 



www.makeprojects.com 



Page 3 of 1 



Audio-Enhanced Touch Sensors to Help the Visually Impaired 





• Strip short lengths of your single- 
core hookup wire and solder them 
to a strip of 8 x 0.1" header pins. 
Only strip a smidgen of insulation 
off the end that you are soldering 
as the insulation will melt back a 
surprising amount. I find a blob of 
blue tack useful for holding the wire 
so that I don't burn my fingers or 
cut through the insulation by using 
metal pliers. The wires need to be 
long enough so that they can fan 
out and connect to the green 
terminal block on the Xkitz board. 
You need one of these for each of 
your XKitz boards. 





Solder stackable header pins to the 
USB Shield so that you can 
connect it to the Arduino and still 
be able to connect the XKitz boards 
on top. The order in which you 
finally stack the boards does not 
matter. Use blue-tack (again!) to 
keep the headers square while you 
flip over the board and solder the 
pins on the base of the board. 



© Make Projects 



www.makeprojects.com 



Page 4 of 1 



Audio-Enhanced Touch Sensors to Help the Visually Impaired 





• Here's the full Arduino stack. In the 
photo I am using a battery shield, 
but you can also use an external 
power supply. Have you ever seen 
so many Arduino boards in a 
stack? 



Step 5 




Load the ArduinoTouch sketch on 
to your Uno board. You can 
download the sketch file 
ArduinoTouchl.pde from the link 
at the bottom of my web page . 

The green LEDs should light when 
you touch the header pins. You 
may need to adjust the sensitivity 
of the touch sensor channels by 
using the potentiometer on the 
XKitz boards. 



© Make Projects 



www.makeprojects.com 



Page 5 of 1 



Audio-Enhanced Touch Sensors to Help the Visually Impaired 




1-iCOMll 



Send 



Starting Xkitz XCTS-8A Diagnostic 

■numeration done 

X«ire Library Revision: 2 00 

Xvire inumeEation: 2 af 2 Xvire boards found 

XvirelnqBoardlD: Ncde_ID = 1, Beard ID - IF, FW Rev: 2 PCS Rev: £0 Device ID: 10 Mfgr ID: Xkitz 

Xvirelr.qBaardID: Nnde_ID - 2, Beard ID = IB, FW Rev: 2 PCB Rev: 20 Device ID: 10 Mrgr ID: Xki^a 



XuirelnqKodelD: Board ID = IF Nede_ID 
XwirelnqNodelD; Board ID = IB Kode_ID 

Ar duin oTouch 1 
Read boardID = IF 
beard - IF OK channel = F 
Read boardID = IF 
beard = IF OFF channel = F 
Read boardID = IB 
board — IB ON channel = 
Read boardID - IB 
I board = IB OFF channel = 



- 1 



# Connect your Arduino Uno to the 
Arduino programming environment. 
Fire up the serial monitor and set 
the baud rate to 1 15200. You 
should see details of the Xkitz 
boards displayed. I gratuitously 
copied sections of the code from 
the XKitz demo sketch. 



Step 7 






We need thin laminated wire loops or a coil on top of each control that you wish to sense. 
These wires should be routed through your device and will connect with your board stack 
more of that in the next step. 

Disassemble the device that you are enhancing so that you can get at both sides of the 
control panel. For rubber-membrane-style controls, you can sew the wire through as I did 
on the digital radio. For solid buttons, you can glue down a little circle of wire and drill a 
small hole to thread it through. I used small bits of sticky tape to secure the wires inside 
the case and made a small hole in the side to bring out the loose ends. 



© Make Projects 



www.makeprojects.com 



Page 6 of 1 



Audio-Enhanced Touch Sensors to Help the Visually Impaired 





• You need to bring out the ends of 
the wires from the side or back of 
your case so that they can be 
terminated to connect with the 
XKitz boards. I sealed up the little 
holes that I made using - what else 
- a little blue tack. Terminate the 
touch sensor wires by soldering 
them onto strips of 8 x 0.1" header 
sockets. Each strip will connect to 
an Xkitz board. 



Step 9 




Connect the touch sensor wire 
sockets onto the pins of the Xkitz 
boards. Test that touching your 
control triggers the touch sensor - 
the green LED should go on. You 
may need to adjust the sensitivity 
of the touch sensor by altering the 
potentiometer on the Xkitz board. 
You can also display the active 
channels using the ArduinoTouchl 
sketch and the serial monitor. 



© Make Projects 



www.makeprojects.com 



Page 7 of 1 



Audio-Enhanced Touch Sensors to Help the Visually Impaired 



Step 10 



- 










[j-JJ 


■» » CefflplflH h lEXUifHi > TaOittBllttMW » 






- 


; f J:' " 


(jniK ■ iftntivith' Burri NohfoMtf 










3k » 






J, ctak»wfcmcd 




tttt nwdiTnJ 


\pt 5m 




J- <fe«n 

i. *9^hrn 

i. ( dfrsfn! ChIhto 
i. fif mititwn 
i, iMTjMft 

i. MM 
i. iwbik- 
J. Mush 

J. KkKd 

i, IHDWWy 


lOr^Ml 


iWlft'2011 ITM 


HtfMdM 






V. ch*nntlj}jgp 


»Ml/ffil222:« 


3G»Au*a/Yide<» 


sn 




'. zPi'^ti_l ■■■:• 


OMl/fflUiMS 


2GW AuAo/Vkleo 


an 




■P. sh^mtL'-iW 


ip.Ti]/»i:ahM 

LD'TU'TQlS-ahM 


J&?? ^uJiij "','idiw 
3W?Aml.i'Vi:k* 


41 1* 

37 KB 

an 




V. cK»ontl_Stigp 


lO/fll/ffiLlSiU 


3&fPiu*u,VHfco 


i.- a 






MV0l/Slll9eM 


J&WAwfta.'Vidto 
3G*P Aufkii'VidHi 
3BVAiiAa,'Vtd» 


on 

xn 

3TKB 




M*hP^>*» 


lD.fl|..'J01?J(hM 


J3*JW**flT^p 


»kb 




po. (h»~)fi.ig3,|, 

V. :hjii|i_L] Jijr 
^ chuwtfl.l^Jgp 
■T ehJMtd^EiJgp. 


IMI/KIZM*! 
iou].jai?ah« 


Jt" Audio/Video 
M» AuAo/VKlto 


»n 
an 

no 

33 KB 


Mcrtir< 


M ^h+nftfl.l*Jap 


Uraj/JOlJSk*! 


3(**Av*Vfi4« 


SKB 




!<?. tK^nnflJSJjp. 


ofrfli/wjfjjw 


3e»AwfcflrK(«& 


32KB 




j. fitujrch 












(, liftjlbWt 












i. Eflbfll Cantos. 












i- IMSSKkupfestect 












!■.<!■ 












. llw- Dirktf Sd* 












i. ««e 












i. TferihBwtlvia. 












j. V*bwf 












3 uuip * 












1? *tms 

- — — _ = 



) free 3GP Vitfeo Converter v. 5.0.6 huild 221 




For each channel, you need to make a sound file in 3GP format. Channel one is called 
channel_0.3gp, channel two channel_1.3gp and so on. These files need to go onto the SD 
card in your Android phone in the directory /TouchButtons. 

Use any audio recording software with a microphone to create the audio files for your 
controls in WAV or MP3 format - most don't support 3GP format directly. To convert these 
files to 3GP format, I use Free 3GP Converter, available here . 



© Make Projects 



www.makeprojects.com 



Page 8 of 1 



Audio-Enhanced Touch Sensors to Help the Visually Impaired 



Step 11 




• To interface the Arduino stack to 
an Android phone, we use a 
modified micro-USB cable. We 
need a 1 K resistor in the power line 
(the red wire) to prevent the phone 
from trying to charge through the 
Arduino. Use a scalpel to strip off 
the insulation on the cable, cut out 
5 or 6mm of the red wire, then 
solder in the 1K resistor. You can 
wrap up the assembly with 
insulation tape for a neater finish if 
you like. 

• Thanks to Simon Monk, author of 
"Android + Arduino for the Evil 
Genius" for details of how to do 
this. 



© Make Projects 



www.makeprojects.com 



Page 9 of 1 



Audio-Enhanced Touch Sensors to Help the Visually Impaired 



Step 12 




• Time to load the 
ArduinoTouch.apk app onto your 
Android phone. This can be found 
at the bottom of my web page . 

• To load the APK file onto your 
phone, Google for instructions. You 
will need to connect your phone to 
your PC using a micro-USB cable, 
or put the APK file onto your SD 
card and let the phone discover it. 

• Connect the phone to the stack of 
boards with your modified cable, 
connect the boards to your device 
and fire everything up! If you need 
extra volume, you can use an 
external speaker such as the X- 
mini. 

• Check out the video in the 
Introduction for what should 
happen. Check connections and 
power to the Arduino boards if it 
isn't working as expected. 



This document was last generated on 201 2-1 1 -03 03:1 1 :04 AM. 



© Make Projects 



www.makeprojects.com 



Page 10 of 10